
public class PatientArrivesEvent extends EventBase {

	public PatientArrivesEvent(int arrivalTime, PatientBase patient) {
		super(patient);
		startTime = arrivalTime;
	}

	public void execute() {
		super.execute();
		patient.arrivalTime = Simulator.getCurrentTime();
		Simulator.addPatient(patient);
		
	}
}
